#ifndef PLANE_H
#define PLANE_H


#include <QPixmap>
#include <QRect>
#include <Qpixmap>
#include "config.h"
#include "bullet.h"
#include <QString>

//创建大基类
class Plane
{
public:
    Plane();
    //创建pure virtual函数以供派生类修改
    virtual void shoot();
    virtual void setPosition(int ,int );


public:
    //飞机坐标
    int m_X;
    int m_Y;

    //飞行资源 对象
    QPixmap m_Plane;

    //飞机矩形边框
    QRect m_Rect;

     //飞机等级
    static int level;


    //弹匣
    bullet m_bullets[BULLET_NUM];

    //发射间隔记录
    int m_recorder;
};

#endif // PLANE_H
